﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using tiDE.API;
using System.IO;

namespace tiDE.Packers
{
    class OS83PlusPacker : IPacker
    {
        public void Pack(byte[] Output, Project Project, string OutputFile)
        {
            // Pack a ROM file
            BinaryWriter writer = new BinaryWriter(File.Open(OutputFile, FileMode.Create));
            writer.Write(Output);
            for (int i = 0; i < 0x8847A - Output.Length; i++)
                writer.Write((byte)0xFF);
            writer.Close();
        }

        public string OutputExtention
        {
            get { return "rom"; }
        }
    }
}
